/**
 * 
 */
package com.example;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * 添加@EnableConfigServer注解，开启Config Server<br>
 * 添加@EnableDiscoveryClient注解，用来将config-server注册到上面配置的服务注册中心上去。
 */
@EnableDiscoveryClient
@EnableConfigServer
@SpringBootApplication
public class ConfigServerApplication {
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		new SpringApplicationBuilder(ConfigServerApplication.class).web(true)
				.run(args);
	}
}
